/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 黎鹤舞
 * Date: 2025-03-12
 * Time: 19:56
 */


/**
 * 1. 题目：有四个数字：1、2、3、4，能组成多少个互不相同且无重复数字的三位数？各是多少？
 */
public class UniqueThreeDigits {
    public static void main(String[] args) {
        int count = 0;
        for (int i = 1; i <= 4; i++) {
            for (int j = 1; j <= 4; j++) {
                for (int k = 1; k <= 4; k++) {
                    if (i != j && j != k && i != k) {
                        int num = i * 100 + j * 10 + k;
                        System.out.println(num);
                        count++;
                    }
                }
            }
        }
        System.out.println("个数:"+ count);
    }
}